import Vue from 'vue';
import Cookies from 'js-cookie'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'
// import './icons'
import './permission'
import './styles/index.scss'
Vue.use(ElementUI, {
  size: Cookies.get('size') || 'medium'
})
Vue.config.productionTip = false
import store from './store'

// 轮播图
// import VueAwesomeSwiper from 'vue-awesome-swiper'
// import 'swiper/dist/css/swiper.css'

// Crypto加密
import CryptoJS from 'crypto-js'
Vue.prototype.$CryptoJS = CryptoJS

// dayjs
import dayjs from 'dayjs'
import isBetween from 'dayjs/plugin/isBetween'
dayjs.extend(isBetween)
Vue.prototype.$dayjs = dayjs

// // 全局挂载
// Vue.use(VueAwesomeSwiper)

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
